package com.example.pojo;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class JobDTO {
    @NotBlank(message = "Job名称不能为空")
    private String jobName;
    @NotBlank(message = "Job分组不能为空")
    private String jobGroup;
    private String triggerName;
    private String triggerGroup;
    // @DateTimeFormat(pattern = "YYYY-MM-DD hh:mm:ss")
    private Date previousFireDate;
    // @DateTimeFormat(pattern = "YYYY-MM-DD hh:mm:ss")
    private Date nextFireDate;
    private String cronExpression;
    private String jobStatus;
    private String jobDesc;
    private String jobClassName;
}